package fatworm.concept;

import fatworm.util.Lib;

/** the enumeration of order of the data */
public class DataOrder {
	private int order;
	private DataOrder( int order ){
		this.order = order;
	}
	public int getOrder(){
		return order;
	}
	public String toString(){
		return DataOrder.toString( order );
	}
	
	public static String toString( int order ){
		switch( order ){
			case O_ASC	: return "ASC";
			case O_DESC	: return "DESC";
			default		: Lib.assertNotReached(); return null;
		}
	}
	public static final int O_ASC = 0 , O_DESC  = 1;
	public static final DataOrder 	ASC = new DataOrder( O_ASC ),
									DESC= new DataOrder( O_DESC ); 
}
